#ifndef _TEST_H__
#define _TEST_H__

#define get_driver_name(tfm_type, tfm) \
	crypto_tfm_alg_driver_name(tfm_type##_tfm(tfm))

extern u32 idx;
extern char *alg;
extern u32 step;
extern u32 sync;

void print_buf(u8 *name, u8 *buf, u32 len);
void sm3_test(void);
void hmac_sm3_test(void);

/* 0:ecb 1: cbc 2: ctr */
void sm4_test(int mode);
int sm2_test(void);

#endif